package com.wrial.seckill.dao;
/*
 * @Author  Wrial
 * @Date Created in 9:49 2020/4/4
 * @Description
 */

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wrial.seckill.dataobject.UserPasswordDO;
import org.apache.ibatis.annotations.Select;

public interface UserPasswordDOMapper extends BaseMapper<UserPasswordDO> {

    @Select("select encrpt_password from user_password where user_id = #{uid}")
    public String getPasswordByUserId(Integer uid);

    @Select("select * from user_password where user_id = #{uid}")
    UserPasswordDO selectByUserId(Integer uid);
}
